After the Big Bang, the matter in the universe started to compact. This led to an increase in temperature and further compaction of the matter until a ball, similar to today's Sun, was formed. The fusion of atoms that subsequently took place resulted eventually in the emission of radiation.